package com.zhijian.medical.service;


import com.zhijian.medical.entity.po.ExamQuestion;
import com.zhijian.medical.entity.vo.request.ExamQuestionInsertVo;
import com.zhijian.medical.entity.vo.request.ExamQuestionSearchVo;
import com.zhijian.medical.entity.vo.response.ExamQuestionVo;
import com.zhijian.medical.util.Page;

import java.util.List;

/**
 * 考核-录入题目表 业务处理层
 *
 * @author HCG
 * @version 1.0
 * @date 2022-01-04 15:52:37
 */
public interface ExamQuestionService {

    /**
     * 主键查询
     *
     * @param id
     * @return
     */
    ExamQuestion selectById(Long id);

    /**
     * 主键查询vo
     *
     * @param id
     * @return
     */
    ExamQuestionVo selectVoById(Long id);

    /**
     * 按照主键删除
     *
     * @param id
     */
    void deleteById(Long id);

    /**
     * 根据题库删除
     *
     * @param warehouseId
     */
    void deleteByWarehouseId(Long warehouseId);

    /**
     * 新增
     *
     * @param examQuestion
     * @return
     */
    Long insert(ExamQuestion examQuestion);

    /**
     * 新增，带答案
     *
     * @param examQuestionInsertVo
     * @return
     */
    Long insert(ExamQuestionInsertVo examQuestionInsertVo);

    /**
     * 更改
     *
     * @param examQuestion
     * @return
     */
    boolean update(ExamQuestion examQuestion);

    /**
     * 总数
     *
     * @param examQuestionSearchVo
     * @return
     */
    Integer count(ExamQuestionSearchVo examQuestionSearchVo);

    /**
     * 列表
     *
     * @param examQuestionSearchVo
     * @return
     */
    List<ExamQuestionVo> selectList(ExamQuestionSearchVo examQuestionSearchVo);

    /**
     * 分页展示
     *
     * @param examQuestionSearchVo
     * @return
     */
    Page<ExamQuestionVo> selectPage(ExamQuestionSearchVo examQuestionSearchVo);

    /**
     * 获得一个题库下的全部的id集合，以英文逗号隔开
     *
     * @param warehouseId
     * @return
     */
    String selectIds(Long warehouseId);
}